<!DOCTYPE html>
<head>
<title>集市宝</title>
<?php $this->load->view('common/cmdsource');?>
<style type="text/css">
	.smile{
		font-size: 66px;
		margin-top:50px;
		color: #dd514c;
	}
	.waiting{
		font-size:16px;
	}

	h3{
		color: #dd514c;
	}
	#wait{
		font-size:16px;
	}

	.waiting a{
		color:#dd514c;
	}
</style>
</head>
<body>
	<section class="layout layout-response">
		<div class="smile">
			<i class="fa  fa-smile-o"></i>
		</div>
		<div class="waiting">
			<h3>支付成功</h3>
			<p>等待 <i id="wait" >5</i> 秒后页面将自动跳转</p>
			<p>或 <a id="href" href="<?php echo site_url('order/myorder')?>">立即跳转</a></p>
		</div>
		 		
	
	</section>
</body>
<script>
(function(){
 	var wait = document.getElementById('wait'),href = document.getElementById('href').href;
 	var interval = setInterval(function(){
	var time = --wait.innerHTML;
 	if(time <= 0) {
	    window.location.href = href;
        clearInterval(interval);
 	}
  }, 1000);
 })();
 
</script>